import request from '@/utils/request1'
//新增退货订单
export function addRejectOrder(data) {
    return request({
      url: '/system/pos/order/generate_reject',
      method: 'post',
      data: data
    })
  }
  //退货
  export function rejectItem(data) {
    return request({
      url: '/system/pos/order/reject_item',
      method: 'post',
      data: data
    })
  }
// 查询rejectOrder列表
export function listRejectOrder(query) {
  return request({
    url: '/system/pos/reject_order/list',
    method: 'get',
    params: query
  })
}

// 查询order详细
export function getRejectOrder(id) {
  return request({
    url: '/system/pos/reject_order/' + id,
    method: 'get'
  })
}
